import service from '@/utils/request'

// =============================标准信息列表===============================
export const groupStandardApi = (dataForm: any) => {
	return service.get('/groupStandard/list', { params: dataForm })
}
// 新增
export const groupStandardAddApi = (dataForm: any) => {
	return service.post('/groupStandard/saveOrSubmit', dataForm)
}
// 标准类型字典表
export const groupStandardListTypeApi = (dataForm: any) => {
	return service.get('/groupStandard/listType')
}
// 删除
export const groupStandardDelApi = (dataForm: any) => {
	return service.get('/groupStandard/delete', { params: dataForm })
}
// 审批
export const groupStandardAppApi = (dataForm: any) => {
	return service.post('/groupStandard/approval', dataForm)
}
// 状态字典表
export const groupStandardStatusApi = () => {
	return service.get('/groupStandard/listApplyStatus')
}
// 发布
export const groupStandardPublishApi = (dataForm: any) => {
	return service.post('/groupStandard/publish', dataForm)
}
// 取消发布
export const groupStandardCancelPublishApi = (dataForm: any) => {
	return service.post('/groupStandard/cancelPublish', dataForm)
}

// 详情
export const groupStandardDetailApi = (dataForm: any) => {
	return service.get('/groupStandard/getDetailInfo', { params: dataForm })
}
// ==========================================团体标准工程应用信息采集

export const groupStandardEIListApi = (dataForm: any) => {
	return service.get('/groupStandardEngineeringInfo/list', { params: dataForm })
}
// 审批
export const groupStandardEIApApi = (dataForm: any) => {
	return service.post('/groupStandardEngineeringInfo/approval', dataForm)
}
// 发布
export const groupStandardEIPuApi = (dataForm: any) => {
	return service.post('/groupStandardEngineeringInfo/publish', dataForm)
}
// 取消发布
export const groupStandardEICanPuApi = (dataForm: any) => {
	return service.post('/groupStandardEngineeringInfo/cancelPublish', dataForm)
}
// 删除
export const groupStandardEIDelApi = (dataForm: any) => {
	return service.get('/groupStandardEngineeringInfo/delete', { params: dataForm })
}
// 根据编码获取信息
export const groupStandardEICodeInfoApi = (dataForm: any) => {
	return service.get('/groupStandardEngineeringInfo/listStandard', { params: dataForm })
}
// 更新
export const groupStandardEIUpdateApi = (dataForm: any) => {
	return service.post('/groupStandardEngineeringInfo/saveOrSubmit', dataForm)
}
// 获取详情
export const groupStandardEIDetailApi = (dataForm: any) => {
	return service.get('/groupStandardEngineeringInfo/getDetailInfo', { params: dataForm })
}
